import os, shutil

# cmd = "pyinstaller gui.py -D --icon=favicon\\favicon.ico "
cmd = "pyinstaller installer.spec -y"
os.system(cmd)

remove_path = "build"
if os.path.exists(remove_path):
        shutil.rmtree(remove_path)